package groupon.user.model;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;


@Entity
@Table(name = "groupon_user")
@DiscriminatorValue("USERS")
public class User extends Account {
	
//		private static final long serialVersionUID = 1L;
		public static final String PROP_USERNAME = "username";
		public static final String PROP_EMAIL = "email";
		public static final String PROP_CREATED_DATE = "createdDate";
		public static final String PROP_MODIFY_DATE = "modifyDate";
		public static final String PROP_STREET = "street";
		public static final String PROP_CITY = "city";
		public static final String PROP_COUNTRY = "country";
		public static final String PROP_STATE = "state";
		public static final String PROP_TELEPHONE = "telephone";
		public static final String PROP_ACTIVE = "is_active";
		
		@Column(name = "firstName", nullable = false)
		private String firstName;
		
		@Column(name = "lastName", nullable = false)
		private String lastName;
		
		@Column(name = "lastLogin")
		private Date lastLogin;
	
		private String street;
		private String city;
		private String country;
		private String state;
		private String telephone;
		private String birthday;
	
		public String getFirstName() {
			return firstName;
		}
		public void setFirstName(String firstName) {
			this.firstName = firstName;
		}
	
		public String getLastName() {
			return lastName;
		}
		public void setLastName(String lastName) {
			this.lastName = lastName;
		}

		public Date getLastLogin() {
			return lastLogin;
		}
		public void setLastLogin(Date lastLogin) {
			this.lastLogin = lastLogin;
		}
		public String getStreet() {
			return street;
		}
		public void setStreet(String street) {
			this.street = street;
		}
		public String getCity() {
			return city;
		}
		public void setCity(String city) {
			this.city = city;
		}
		public String getCountry() {
			return country;
		}
		public void setCountry(String country) {
			this.country = country;
		}
		public String getState() {
			return state;
		}
		public void setState(String state) {
			this.state = state;
		}
		public String getTelephone() {
			return telephone;
		}
		public void setTelephone(String telephone) {
			this.telephone = telephone;
		}
		public String getBirthday() {
			return birthday;
		}
		public void setBirthday(String birthday) {
			this.birthday = birthday;
		}
}

